<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>悬赏任务平台 - 悬赏区</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4361ee;
            --secondary: #3f37c9;
            --success: #4cc9f0;
            --warning: #f72585;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f0f2f5;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 头部样式 */
        header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 12px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px 10px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }
        
        .location {
            display: flex;
            align-items: center;
            font-size: 14px;
        }
        
        .location i {
            margin-right: 5px;
        }
        
        .user-info {
            display: flex;
            align-items: center;
        }
        
        .user-info .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: #fff;
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 10px;
        }
        
        .user-info .id {
            font-size: 12px;
            opacity: 0.8;
        }
        
        .ad-banner {
            padding: 10px 15px;
            text-align: center;
            font-size: 14px;
            background: rgba(255,255,255,0.1);
            margin: 8px 15px;
            border-radius: 8px;
        }
        
        /* 导航菜单 */
        .nav-menu {
            display: flex;
            justify-content: space-around;
            padding: 15px 0 5px;
        }
        
        .nav-item {
            text-align: center;
            font-size: 14px;
            padding: 8px 0;
            flex: 1;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }
        
        .nav-item.active {
            border-bottom: 3px solid var(--success);
            color: var(--success);
            font-weight: bold;
        }
        
        .nav-item i {
            display: block;
            font-size: 20px;
            margin-bottom: 5px;
        }
        
        /* 搜索区域 */
        .search-section {
            background: white;
            padding: 15px;
            margin: 15px;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .search-box {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .search-box input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            font-size: 16px;
        }
        
        .search-btn {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0 20px;
            cursor: pointer;
            font-weight: bold;
        }
        
        .filter-section {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .filter {
            padding: 8px 15px;
            background: var(--light);
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .filter.active {
            background: var(--primary);
            color: white;
        }
        
        /* 悬赏列表 */
        .reward-list {
            padding: 0 15px;
        }
        
        .list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: bold;
        }
        
        .sort-options select {
            padding: 8px 15px;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            background: white;
        }
        
        .reward-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .reward-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .reward-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }
        
        .reward-title {
            font-size: 18px;
            font-weight: bold;
            color: var(--dark);
        }
        
        .reward-price {
            background: linear-gradient(135deg, var(--warning), #ff0a78);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 16px;
        }
        
        .reward-info {
            display: flex;
            margin-bottom: 15px;
            font-size: 14px;
            color: var(--gray);
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .reward-info div {
            display: flex;
            align-items: center;
        }
        
        .reward-info i {
            margin-right: 5px;
            color: var(--primary);
        }
        
        .reward-stages {
            background: var(--light);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
        }
        
        .stage {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px dashed var(--light-gray);
        }
        
        .stage:last-child {
            border-bottom: none;
        }
        
        .stage-name {
            font-weight: 500;
        }
        
        .stage-price {
            color: var(--warning);
            font-weight: bold;
        }
        
        .reward-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .publisher {
            display: flex;
            align-items: center;
        }
        
        .publisher-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            font-weight: bold;
            font-size: 14px;
        }
        
        .publisher-name {
            font-size: 14px;
            color: var(--gray);
        }
        
        .reward-status {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 14px;
        }
        
        .status-pending {
            background: #fff3cd;
            color: #856404;
        }
        
        .status-progress {
            background: #cce5ff;
            color: #004085;
        }
        
        .apply-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .apply-btn:hover {
            background: var(--secondary);
        }
        
        /* 底部导航 */
        footer {
            background: white;
            position: fixed;
            bottom: 0;
            width: 100%;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        }
        
        .footer-nav {
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
        }
        
        .footer-item {
            text-align: center;
            font-size: 12px;
            flex: 1;
        }
        
        .footer-item i {
            font-size: 20px;
            margin-bottom: 3px;
        }
        
        .footer-item.active {
            color: var(--primary);
        }
        
        /* 发布按钮 */
        .publish-btn {
            position: fixed;
            bottom: 70px;
            right: 20px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.4);
            cursor: pointer;
            z-index: 10;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .header-top {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .user-info {
                margin-top: 10px;
            }
            
            .filter-section {
                overflow-x: auto;
                padding-bottom: 5px;
            }
            
            .reward-header {
                flex-direction: column;
                gap: 10px;
            }
            
            .reward-price {
                align-self: flex-start;
            }
        }
    </style>
</head>
<body>
    <!-- 头部区域 -->
    <header>
        <div class="header-top">
            <div class="location">
                <i class="fas fa-map-marker-alt"></i>
                <span>上海市</span>
            </div>
            <div class="user-info">
                <div class="avatar">张</div>
                <div>
                    <div>张先生</div>
                    <div class="id">ID: U123456</div>
                </div>
            </div>
        </div>
        <div class="ad-banner">
            🎉 新用户注册即送50元优惠券！立即体验 >>
        </div>
        <nav class="nav-menu">
            <div class="nav-item">
                <i class="fas fa-sun"></i>
                <div>日结区</div>
            </div>
            <div class="nav-item active">
                <i class="fas fa-tasks"></i>
                <div>悬赏区</div>
            </div>
            <div class="nav-item">
                <i class="fas fa-graduation-cap"></i>
                <div>能力提升</div>
            </div>
            <div class="nav-item">
                <i class="fas fa-store"></i>
                <div>服务商</div>
            </div>
            <div class="nav-item">
                <i class="fas fa-briefcase"></i>
                <div>特殊招聘</div>
            </div>
        </nav>
    </header>
    
    <div class="container">
        <!-- 搜索区域 -->
        <section class="search-section">
            <div class="search-box">
                <input type="text" placeholder="搜索悬赏任务...">
                <button class="search-btn">搜索</button>
            </div>
            <div class="filter-section">
                <div class="filter active">全部</div>
                <div class="filter">设计类</div>
                <div class="filter">IT技术</div>
                <div class="filter">文案写作</div>
                <div class="filter">线下任务</div>
                <div class="filter">高佣金</div>
            </div>
        </section>
        
        <!-- 悬赏列表 -->
        <section class="reward-list">
            <div class="list-header">
                <h2 class="section-title">最新悬赏任务</h2>
                <div class="sort-options">
                    <select>
                        <option>默认排序</option>
                        <option>佣金最高</option>
                        <option>最新发布</option>
                        <option>即将截止</option>
                    </select>
                </div>
            </div>
            
            <!-- 悬赏任务卡片 -->
            <div class="reward-card">
                <div class="reward-header">
                    <div class="reward-title">企业官网UI设计（三阶段）</div>
                    <div class="reward-price">¥1,850</div>
                </div>
                <div class="reward-info">
                    <div><i class="fas fa-clock"></i> 剩余3天</div>
                    <div><i class="fas fa-map-marker-alt"></i> 远程</div>
                    <div><i class="fas fa-layer-group"></i> 设计类</div>
                    <div><i class="fas fa-user-check"></i> 需实名认证</div>
                </div>
                <div class="reward-stages">
                    <div class="stage">
                        <div class="stage-name">阶段一：网站原型设计</div>
                        <div class="stage-price">¥600</div>
                    </div>
                    <div class="stage">
                        <div class="stage-name">阶段二：UI视觉设计</div>
                        <div class="stage-price">¥850</div>
                    </div>
                    <div class="stage">
                        <div class="stage-name">阶段三：交付与修改</div>
                        <div class="stage-price">¥400</div>
                    </div>
                </div>
                <div class="reward-footer">
                    <div class="publisher">
                        <div class="publisher-avatar">科</div>
                        <div class="publisher-name">科技公司</div>
                    </div>
                    <div class="reward-status status-pending">待申请</div>
                    <button class="apply-btn">立即申请</button>
                </div>
            </div>
            
            <div class="reward-card">
                <div class="reward-header">
                    <div class="reward-title">微信公众号运营（内容+排版）</div>
                    <div class="reward-price">¥2,400</div>
                </div>
                <div class="reward-info">
                    <div><i class="fas fa-clock"></i> 剩余5天</div>
                    <div><i class="fas fa-map-marker-alt"></i> 上海市</div>
                    <div><i class="fas fa-layer-group"></i> 文案写作</div>
                    <div><i class="fas fa-user-check"></i> 需实名认证</div>
                </div>
                <div class="reward-stages">
                    <div class="stage">
                        <div class="stage-name">阶段一：内容策划</div>
                        <div class="stage-price">¥800</div>
                    </div>
                    <div class="stage">
                        <div class="stage-name">阶段二：文案撰写</div>
                        <div class="stage-price">¥1,000</div>
                    </div>
                    <div class="stage">
                        <div class="stage-name">阶段三：排版发布</div>
                        <div class="stage-price">¥600</div>
                    </div>
                </div>
                <div class="reward-footer">
                    <div class="publisher">
                        <div class="publisher-avatar">教</div>
                        <div class="publisher-name">教育机构</div>
                    </div>
                    <div class="reward-status status-progress">进行中</div>
                    <button class="apply-btn" disabled>已申请</button>
                </div>
            </div>
            
            <div class="reward-card">
                <div class="reward-header">
                    <div class="reward-title">移动App开发（React Native）</div>
                    <div class="reward-price">¥8,500</div>
                </div>
                <div class="reward-info">
                    <div><i class="fas fa-clock"></i> 剩余12天</div>
                    <div><i class="fas fa-map-marker-alt"></i> 远程</div>
                    <div><i class="fas fa-layer-group"></i> IT技术</div>
                    <div><i class="fas fa-user-check"></i> 需实名认证</div>
                </div>
                <div class="reward-stages">
                    <div class="stage">
                        <div class="stage-name">阶段一：需求分析与设计</div>
                        <div class="stage-price">¥2,000</div>
                    </div>
                    <div class="stage">
                        <div class="stage-name">阶段二：核心功能开发</div>
                        <div class="stage-price">¥4,000</div>
                    </div>
                    <div class="stage">
                        <div class="stage-name">阶段三：测试与交付</div>
                        <div class="stage-price">¥2,500</div>
                    </div>
                </div>
                <div class="reward-footer">
                    <div class="publisher">
                        <div class="publisher-avatar">创</div>
                        <div class="publisher-name">创业公司</div>
                    </div>
                    <div class="reward-status status-pending">待申请</div>
                    <button class="apply-btn">立即申请</button>
                </div>
            </div>
            
            <div class="reward-card">
                <div class="reward-header">
                    <div class="reward-title">展会活动临时工作人员</div>
                    <div class="reward-price">¥1,200</div>
                </div>
                <div class="reward-info">
                    <div><i class="fas fa-clock"></i> 剩余2天</div>
                    <div><i class="fas fa-map-marker-alt"></i> 浦东新区</div>
                    <div><i class="fas fa-layer-group"></i> 线下任务</div>
                    <div><i class="fas fa-user-check"></i> 需实名认证</div>
                </div>
                <div class="reward-stages">
                    <div class="stage">
                        <div class="stage-name">阶段一：前期培训</div>
                        <div class="stage-price">¥200</div>
                    </div>
                    <div class="stage">
                        <div class="stage-name">阶段二：展会执行（3天）</div>
                        <div class="stage-price">¥800</div>
                    </div>
                    <div class="stage">
                        <div class="stage-name">阶段三：总结报告</div>
                        <div class="stage-price">¥200</div>
                    </div>
                </div>
                <div class="reward-footer">
                    <div class="publisher">
                        <div class="publisher-avatar">会</div>
                        <div class="publisher-name">会展公司</div>
                    </div>
                    <div class="reward-status status-pending">待申请</div>
                    <button class="apply-btn">立即申请</button>
                </div>
            </div>
        </section>
    </div>
    
    <!-- 发布按钮 -->
    <div class="publish-btn">
        <i class="fas fa-plus"></i>
    </div>
    
    <!-- 底部导航 -->
    <footer>
        <div class="footer-nav">
            <div class="footer-item">
                <i class="fas fa-home"></i>
                <div>首页</div>
            </div>
            <div class="footer-item active">
                <i class="fas fa-tasks"></i>
                <div>悬赏</div>
            </div>
            <div class="footer-item">
                <i class="fas fa-comments"></i>
                <div>消息</div>
            </div>
            <div class="footer-item">
                <i class="fas fa-user"></i>
                <div>我的</div>
            </div>
        </div>
    </footer>
    
    <script>
        // 筛选标签切换
        document.querySelectorAll('.filter').forEach(filter => {
            filter.addEventListener('click', function() {
                document.querySelectorAll('.filter').forEach(f => {
                    f.classList.remove('active');
                });
                this.classList.add('active');
            });
        });
        
        // 申请按钮交互
        document.querySelectorAll('.apply-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                if(!this.disabled) {
                    const card = this.closest('.reward-card');
                    const title = card.querySelector('.reward-title').textContent;
                    
                    // 在实际应用中这里会跳转到申请页面
                    alert(`您已申请任务：${title}\n任务已冻结资金，请尽快联系发布方开始执行`);
                    
                    this.textContent = '已申请';
                    this.disabled = true;
                    this.style.background = '#6c757d';
                    
                    // 更新状态
                    const status = card.querySelector('.reward-status');
                    status.textContent = '申请中';
                    status.className = 'reward-status status-progress';
                }
            });
        });
        
        // 发布按钮交互
        document.querySelector('.publish-btn').addEventListener('click', function() {
            alert('进入悬赏发布页面\n发布任务需预付全额奖励金到平台');
        });
    </script>
</body>
</html>